!{if $forms.groups|count gt 1}
<div class="tabs">
	<ul class="tabs_title">
	!{foreach from=$groups item=g key=gid}
		<li><a href="#tab_!{$forms.name}_!{$gid}">!{$g.$cur_lang.name}</a></li>
	!{/foreach}
	</ul>
!{/if}
!{foreach from=$groups item=g key=gid}
	<div id="tab_!{$forms.name}_!{$gid}" class="tabs_content">
		!{if $g.mutil_lan_items}
		<div class="tabs lan_tabs">
			<ul>
			!{foreach from=$langs item=lan_name key=lan}
				<li><a href="#lan_!{$gid}_!{$lan}">!{$lan_name}</a></li>
			!{/foreach}
			</ul>
			!{foreach from=$site_langs item=lan_name key=lan}
			<div id="lan_!{$gid}_!{$lan}">
			!{foreach from=$g.mutil_lan_items item=l_item name=i key=index}
				!{attr group=!{$gid} name=!{$l_item.name} type='mutil_lan_items' language=$lan}
			!{/foreach}
			</div>
			!{/foreach}
		</div>
		!{/if}
		
		!{foreach from=$g.items item=item name=i key=index}
			!{attr group=!{$gid} name=!{$item.name}}
		!{/foreach}
	</div>
!{/foreach}
!{if $forms.groups|count gt 1}
</div>
!{/if}
<input type="hidden" name="form_name" value="!{$forms.name}"/>
<input type="hidden" name="module" value="!{$forms.model}"/>
<input type="hidden" name="id" value="!{$id|default:0}"/>
<script>
	//var id = '!{$forms._id|default:0}'; //当前编辑对象ID
	var module = '!{$forms.model}';
	//var mutil = !{if $forms.mutil_lan eq true}1!{else}0!{/if};
</script>
<script src="!{res file='js/jquery_plus/jquery.form.js'}"></script>
<script src="!{res file='js/jquery_plus/ajaxupload.js'}"></script>
